//
//  YWFunctionManager.m
//  maintain
//
//  Created by 烟雨云渊 on 17/1/5.
//  Copyright © 2017年 ewin. All rights reserved.
//

#import "YWFunctionManager.h"
#import "YWFunctionDBManager.h"

@interface YWFunctionManager ()
@end

@implementation YWFunctionManager
YWSingletonM(Manager)

- (BOOL)updateFunctionStatus:(NSInteger)offOrOn withFunctionId:(NSInteger)functionId{
    return [[YWFunctionDBManager shareManager] updateFunctionStatus:offOrOn withFunctionId:functionId];
}

- (NSArray*)getFunctionMenuWithOffOrOn:(NSInteger)offOrOn isSetting:(BOOL)setting{
    return [[YWFunctionDBManager shareManager] getFunctionMenuWithOffOrOn:offOrOn isSetting:setting];
}

- (YWFunctionModel*)getFunctionModelWithFunctionModelId:(NSInteger)functionId{
    return [[YWFunctionDBManager shareManager] getFunctionModelWithFunctionModelId:functionId];
}

- (NSArray*)getFunctionArrayWithFunctionIdArray:(NSArray*)functionIdArray{
    return [[YWFunctionDBManager shareManager] getFunctionArrayWithFunctionIdArray:functionIdArray];
}
@end
